#
#  Makefile for Horizon - libc
#
#  Francesco Frigo
#  Tuesday 20th February, 2007
#
#  Updated: Tuesday 20th February, 2007
#

INCLUDEDIR = -I./include
OPTIONS = -nostdinc -nostdlib -nostartfiles -fno-builtin -fwritable-strings -g

CC=gcc-3.3

all:
	make -C libc
	as -o crt0.o crt0.s
#	as -o crt0_tmp.o crt0.s
#	ld --entry _crt0 --oformat a.out-i386-linux -o crt0.o crt0_tmp.o
#	rm crt0_tmp.o
	objcopy -R .comment libc.a

clean: objremove
	rm -f $(OUTF) *.a *~
	make -C libc clean

objremove:
	rm -f *.o
